#ifndef _DSWBASE_H
#define _DSWBASE_H
#include "base.h"

class CDswbase
{
public:
	CDswbase(LPST_ENV_T pEnv);
	virtual ~CDswbase();
public:
	virtual void Destroy();
	int HandleMessage(EN_MSG_TYPE nMsgType, void* pParam){return OnMessage(nMsgType, pParam);};
protected:
	virtual int OnMessage(EN_MSG_TYPE nMsgType, void* pParam){return 0;};
	int SendMessage(EN_MSG_TYPE nMsgType, void* pParam);
protected:
	LPST_ENV_T m_pEnv;
};

#endif

